package com.itheima.test;

public class UserPojo {

    private int id;
    private  String name;
    private int salay;

    public UserPojo(int id, String name, int salay) {
        this.id = id;
        this.name = name;
        this.salay = salay;
    }

    public UserPojo() {

    }

    public UserPojo(int id, String name) {
        this.id = id;
        this.name = name;
    }



    public UserPojo(String name) {
       this.name=name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalay() {
        return salay;
    }

    public void setSalay(int salay) {
        this.salay = salay;
    }

    @Override
    public String toString() {
        return "UserPojo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", salay=" + salay +
                '}';
    }
}
